package org.toools.gwt.wmc.client.additive;

import com.google.gwt.user.client.rpc.AsyncCallback;
import java.util.Collection;
import org.toools.gwt.widget.client.bc.TooolsServiceAsync;
import org.toools.gwt.wmc.jpa.Additive;

public interface AdditiveServiceAsync extends TooolsServiceAsync {


    void getAdditiveByID(Integer id, AsyncCallback<Additive> callback);
    void getAdditives(AsyncCallback<Collection<Additive>> callback);

    void create( Additive a, AsyncCallback<Integer> callback );
    void update( Additive a, AsyncCallback<Boolean> callback );
    void delete( Additive a, AsyncCallback<Boolean> callback );
}